package com.chagee.store.operation.server.transfer;

import com.chagee.store.operation.api.response.SettlementResponse;
import com.chagee.store.operation.api.response.WorkOrderResponse;
import com.chagee.store.operation.server.model.vo.StoreSettlementExcelVO;
import com.chagee.store.operation.server.model.vo.WorkOrderExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author : hk
 * @Date : 2024/9/13
 */

@Mapper
public interface SettlementTransfer {

	SettlementTransfer INSTANCE = Mappers.getMapper(SettlementTransfer.class);

	@Mapping(target = "createTime", expression = "java(cn.hutool.core.date.LocalDateTimeUtil.of(response.getCreateTime()))")
	StoreSettlementExcelVO transferSettlementVO(SettlementResponse response);
	List<StoreSettlementExcelVO> transferSettlementVOList(List<SettlementResponse> response);
}
